import dao.CountryDao;
import entity.Countries;
import util.DBUtil;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

public class Test {
    public static void main(String[] args) throws SQLException{
        CountryDao cd=new CountryDao();
        List<Countries> cts=cd.findByName("%a%");
        for (Countries c:cts){
            System.out.println(c);
        }
    }
}
